cmake_minimum_required(VERSION 3.0.0)

project(write_cgns_file)

find_library(cgns_lib cgns /usr/local/cgnsSerial/lib)
find_library(hdf5_lib hdf5 /usr/local/hdf5/lib)
message("cgns_lib cgns  ${cgns_lib}")
message("hdf5_lib cgns  ${hdf5_lib}")
find_path(cgns_inc cgnslib.h /usr/local/cgnsSerial/include)
# find_path(hdf5_inc hdf5.h /usr/local/cgns/include)

include_directories(${cgns_inc})
add_executable(write_grid_str.out write_grid_str.cpp)

target_link_libraries(write_grid_str.out ${cgns_lib} ${hdf5_lib})